home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / DB_CLIPP / 2510.ZIP / TRSOURCE.EXE / STOD.C < prev    next >
C/C++ Source or Header  |  1990-10-22  |  455b  |  22 lines

  1. /*********
  2. *  STOD
  3. *  by Tom Rettig
  4. * Placed in the public domain by Tom Rettig Associates, 10/22/1990.
  5. *
  6. *  Syntax: STOD( <date string> )
  7. *  Return: <expD> of <date string>
  8. *          Blank <expD> if invalid <date string>
  9. *  Note  : <date string> is <expC> in the DTOS() format "YYYYMMDD"
  10. ********/
  11.  
  12. #include "trlib.h"
  13.  
  14. TRTYPE stod()
  15. {
  16.    if ( PCOUNT == 1 && ISCHAR(1) )
  17.       _retds( _parc(1) );
  18.    else
  19.       _retds( BLANKDS );
  20. }
  21.  
  22.